package com.voltmao.energy.Event;

import com.google.common.eventbus.Subscribe;

public class TestEventListener implements EventListener{
	
	////只有通过@Subscribe注解的方法才会被注册进EventBus,而且方法有且只能有1个参数
	//方法无返回值，目前是这样
	@Subscribe
	public void listenEventByString(String str){
		System.out.println("come in String:" + str);
	}
	
	@Subscribe
	public void listenEventByInteger(Integer number){
		System.out.println("come in Integer:" + number);
	}

}
